package L1;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class _062 {
    /**
     * 幸运彩票
     */
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.valueOf(reader.readLine());
        for (int i=0;i<N;i++){
            String line = reader.readLine();
            int sum1=0;
            int sum2=0;
            for (int j=0;j<6;j++){
                int n = line.charAt(j) - '0';
                if (j<3)
                    sum1+=n;
                else sum2+=n;
            }
            if (sum1==sum2){
                System.out.println("You are lucky!");
            }else   {
                System.out.println("Wish you good luck.");
            }
        }
    }
}
